DataList = DataList or Class("DataList")

---@diagnostic disable-next-line: duplicate-set-field
function DataList:ctor(elementType, dataManager)
    self._elementType = elementType
    self._eventDispatcher = EventDispatcher.new()
    self.count = 0
    self.elements = {}
    self.id = dataManager:createInstanceId()
end